package worker.model.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import worker.model.vo.DefectsVO;
import worker.model.vo.ItemInfoVO;
import worker.model.vo.MemberVO;
import worker.model.vo.OperationsVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class MemberDao {
	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}
	public void register(MemberVO mvo) throws SQLException {
		sqlMapClient.insert("member.register",mvo); 
	}
	public int checkId(String mem_id) throws SQLException {
		//System.out.println(mem_id+"  dao");
		return  (Integer) sqlMapClient.queryForObject ("member.checkId",mem_id);
	}
}






